package com.eastshop.address.vo;

import com.eastshop.user.vo.User;
import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class Address implements Serializable {

    /** identifier field */
    private Integer aid;

    /** nullable persistent field */
    private String name;

    /** nullable persistent field */
    private String phone;

    /** nullable persistent field */
    private String addr;

    /** nullable persistent field */
    private String region;

    /** persistent field */
    private User user;
    
    /** full constructor */
    public Address(String name, String phone, String addr, String region, User user) {
        this.name = name;
        this.phone = phone;
        this.addr = addr;
        this.region = region;
        this.user = user;
    }

    /** default constructor */
    public Address() {
    }

    /** minimal constructor */
    public Address(User user) {
        this.user = user;
    }

    public Integer getAid() {
        return this.aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddr() {
        return this.addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getRegion() {
        return this.region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("aid", getAid())
            .toString();
    }

}
